ViewTypeChanged
TheViewTypeChanged
method is called to notify this part that the view type of one of its display frames has changed.
void ViewTypeChanged (in ODFrame frame);
frame
- A reference to a display frame for this part.
DISCUSSION
OpenDoc calls this method when this part's display frame changes its view type.Your part's
ViewTypeChanged
method should examine the new view type using its frame'sGetViewType
method. It should then display itself in the specified display frame according to the indicated view type. If your part does not support the requested view type, it should instead pick a view type that it can support and then call its frame'sSetViewType
method to update the view type in the frame.OVERRIDING
When you subclassODPart
, you must override this method. Your override method must not call its inherited method; that is, your override method must implement this method's functionality completely.EXCEPTIONS
kODErrInvalidFrame
- The specified frame is not a display frame of this part.
SEE ALSO
TheODFrame::GetViewType
method (page 323).
TheODFrame::SetViewType
method (page 339).
"The ViewTypeChanged Method" on page 70 in OpenDoc Cookbook.
Table 2-1 on page 89 in OpenDoc Programmer's Guide.
"View Type" on page 155 in OpenDoc Programmer's Guide.
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help